<%-- 
	Description: 该jsp是用户登入以后显示的修改密码页面
	Created on : 2015-6-24, 17:04:02
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%-- <jsp:include page="../headOfpublic/publicAfterLogin.jsp"></jsp:include> --%>
<jsp:include page="../headOfpublic/publicSonHead.jsp"></jsp:include>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>重置密码 -九龙全年历史图库  90tuku.com - 随时查看001－150期全年图纸记录</title>

<meta name="Robots" content="index,follow" />

<script type="text/javascript">
	var _contextPath = "";
	var _userContextPath = "/user";
</script>
<!-- <script src="http://js.114fw.com/ls/js/checkLogin.js"
	type="text/javascript"></script> -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/validationEngine.css">
<script src="${pageContext.request.contextPath}/js/jquery.validationEngine-zh_CN.js"></script>
<script src="${pageContext.request.contextPath}/js/jquery.validationEngine.js"></script>
<script>
	$(function() {
		$("#itemForm").validationEngine("attach", {
			showOneMessage : true,
			autoHidePrompt : true,
			promptPosition : "bottomRight"
		});
	});
	function scanTemplate(){
		//验证不通过时return 
		var  validateForm=!$("#itemForm").validationEngine("validate");//验证控件或表单，返回结果 true 或 false
	    if(validateForm) return ; 
	    $.ajax({ 
	       type: "POST", 
	       url:"${pageContext.request.contextPath}/result/resetModifyPwd.do", 
	       data: $("#itemForm").serialize(), 
	       dataType: "text", 
	       success: function(data){ 
	    	  if("null"==data){
	    		  alert("验证码不能为空.");
	    	  }else if("erro"==data){
	    	      alert("验证码有误.");
	    	  }else if("1"==data){
	    		  var r=confirm("密码修改成功.是否要去登入页面!");
	    			if (r==true){
	    				 location="${pageContext.request.contextPath}/skip/login.do";
	    			  }	
	    	  }else if("0"==data){
	    		  var r=confirm("密码修改失败.是否重新申请找回密码!");
	    			if (r==true){
	    				 location="${pageContext.request.contextPath}/skip/forgetPwd.do";
	    			  }	
	    	  }
	         } 
	    }); 
	}
	 	
	
</script>
</head>
<body>

	<div class="nav">
		<div class="width">

			<div class="x"></div>
			<div class="mt1 login">
				<table width="100%" border="0" class="colours">
					<tr>
						<td width="55%" class="login_" valign="top">
							<p class="login_left tubg login_4">
								请保管好您的新密码。
							</p>
							<form name="itemForm" id="itemForm" class="kuang">
								<input type="hidden" id="hiddenId" name="userId" value="${users.userId}"/><!--隐藏id  -->
								<input type="hidden" id="username" name="username" value="${users.username}"/>
								<ul>
									<li><span>用 户 名：</span> ${users.username}</li>
									<li class="cellBg"><span>新 密 码：</span> <input
										type="password" id="password" name="password" value=""
										class="text5" data-validation-engine="validate[required]"
										data-errormessage-value-missing="新密码不能为空" /> <i class="red">*</i>
									</li>
									<li><span>确认密码：</span> <input type="password"
										name="confirmPwd" value="" class="text5"
										data-validation-engine="validate[required,equals[password]]"
										data-errormessage-value-missing="确认密码不能为空" /></li>
									<li><span>验 证 码：</span> <input name="securityCode"
										type="text" id="vdcode"
										style="width: 130px; text-transform: uppercase;" class="text5" />
										<img id="vdimgck" align="absmiddle"
										onClick="this.src=this.src+'?'" style="cursor: pointer;border: 1px solid #b0b0b0;"
										title="点击我更换图片" alt="看不清？点击更换" src="${pageContext.request.contextPath}/Verify/verifyCode.do" /></li>
									<li><span>&nbsp;</span> <input type="button"
										id="btnSignCheck" class="submit" style="width: 120px;"
										name="submit" value="确定修改"  onclick="scanTemplate()"/></li>
								</ul>
							</form>
						</td>
						<td width="45%" valign="top">

							<div class="login_right">
								<h2 class="login_left">会员四大功能</h2>
								<dl>
									<dt>1、查看收藏自己所需要的图片</dt>
									<dd>免除几千张图纸，难找到的困扰。</dd>
									<dt>2、批量增减自选图</dt>
									<dd>进入相关图区随时添加、减少自己跟踪的图集。</dd>
									<dt>3、随时发表评论</dt>
									<dd>图纸玄机重重，自己的看法何不拿出来与人探讨？</dd>
									<dt>4、留言建议</dt>
									<dd>给管理员留言增加图纸，给网站提出自己的意见。</dd>
								</dl>
							</div>
						</td>
					</tr>
				</table>
			</div>
			﻿
			<!-- //底部模板 -->
			<div class="mt2 dibu">
				<span><a href="about" target="_blank">
				<font color="#0b690b">联系我们...</font></a></span>如果您觉得《九龙全年历史图库》好，请分享给其他彩友。本站资料永久免费！<a
					href="javascript:window.external.AddFavorite('http://www.90tuku.com/','001-150期全年图纸记录 - 九龙全年历史图库')"> 90tuku.com（点击收藏）</a>
			</div>
		</div>
	</div>
</body>
</html>